home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / util / wb / remember.lha / RememberReader.p < prev    next >
Text File  |  1998-04-01  |  1KB  |  35 lines

  1. ; Remember reader 1.0
  2. ; (c) 1998 Cyborg 
  3.  
  4.     {* Include sys:coder/preass/Options.p *}
  5.     {* Include sys:coder/preass/Prozeduren.p *}
  6.  
  7.     {* String: Version="$VER: Remember Reader 1.0 30.3.98 (C) CYBORG 98"*}
  8.  
  9.     {* Incblock: Buffer1,250*}
  10.     {* Incblock: Buffer3,250*}
  11.     {* Incblock: Buffer2,250*}
  12.  
  13. Start:
  14.     OH=Output()
  15.     If (TH=Open("Envarc:Remember.tasks",#Mode_old))=#0 --> .ende
  16. .l1:
  17.     Result=Fgets(TH,#Buffer1,250)
  18.     Result=Fgets(TH,#Buffer3,250)
  19.     If Result=#0 --> .close
  20.     If (FH=Open("Envarc:Remember.dump",#Mode_old))##0 {
  21. .l3:
  22.                                                          Result=Fgets(FH,#Buffer2,250)
  23.                                                          If Result=#0 --> .l2
  24.                                                          If Comparestring(#Buffer1,#Buffer2,0,#MODE_nocase)=#0 --> .l3
  25.                                                          Execute(#Buffer3,0,0)
  26. .l2:                                                     
  27.                                                          Close(FH)
  28.                                                          bra .l1
  29.                                                        }
  30. .close:
  31.     Close(TH)
  32. .ende:
  33.     RTS
  34.